package com.eastfair.imaster.service;

import com.eastfair.boot.service.SuperCacheService;
import com.eastfair.core.base.R;
import com.eastfair.imaster.dto.ExhibitorEmployeeDTO;
import com.eastfair.imaster.entity.ExhibitorEmployee;
import com.eastfair.imaster.vo.ExhibitorEmployeeVo;

import java.util.List;

/**
 * <p>
 * 业务接口
 * 展商员工
 * </p>
 *
 * @author ligang
 * @date 2021-09-07
 */
public interface ExhibitorEmployeeService extends SuperCacheService<ExhibitorEmployee> {
    /**
     * 添加公司员工到展商
     * @param exhibitorEmployeeDTO 实体
     *        employeeId 员工id
     *        exhibitorId 展商id
     *        companyId 公司id
     *        exhibitionId 展会id
     * @return
     */
    R addEmployeeOfExhibitor(ExhibitorEmployeeDTO exhibitorEmployeeDTO);

    /**
     * 展商剔除公司员工
     * @param exhibitoUserId 展商员工id
     * @return
     */
    R removeEmployeeOfExhibitor(Long exhibitoUserId);


    /**
     * 内部查询
     * @param exhibitorEmployee
     * @param ids
     * @return
     */
    List<ExhibitorEmployee> list(ExhibitorEmployee exhibitorEmployee, List<Long> ids);


    /**
     * 查询展商下的员工
     * @param exhibitorId 展商id
     * @return
     */
    List<ExhibitorEmployeeVo> queryUser(Long exhibitorId);
}
